package com.hatricks.is.redission;

/**
 * redis key 枚举类
 *
 * @author yanyh
 * @date: 2023年5月29日14:59:34
 */

public enum RedisKeyEnum implements ILockKeyEnum {

    HOST_SYNC_LOCK("data_sync_lock", -1, "主机同步锁"),
    ;
    private final String key;

    private final String explain;

    private final long seconds;

    RedisKeyEnum(String key, long seconds, String explain) {
        this.key = key;
        this.explain = explain;
        this.seconds = seconds;
    }

    @Override
    public long getSeconds() {
        return seconds;
    }

    @Override
    public String getExplain() {
        return explain;
    }

    @Override
    public String getKey() {
        return key;
    }
}
